<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <label for="">男</label>
      <input type="radio" value="1" v-model="gender" />
      <label for="">女</label>
      <input type="radio" value="0" v-model="gender" />
    </div>
    <script src="./vue.js"></script>
    <script>
      var vm = new Vue({
        el: "#app",
        data: {
          gender: "1",
        },
        methods: {},
      });

      setInterval(() => {
        vm.gender = vm.gender == "1" ? "0" : "1";
      }, 1000);
    </script>
  </body>
</html>
